package com.edgar.plugin.compat;

import com.edgar.plugin.SystemClassHolder;
import com.edgar.plugin.utils.MethodUtils;

/**
 * Created by Edgar on 2018/2/12.
 */
public class ActivityThreadCompat {

    private static Object sActivityThread;

    private ActivityThreadCompat(){}

    public static Object currentActivityThread(){
        if (sActivityThread == null){
            sActivityThread = MethodUtils.invokeStaticMethod(SystemClassHolder.activityThreadClass(),
                    "currentActivityThread",null);
        }
        return sActivityThread;
    }
}
